<input type="button" id='selectaddress' name='selectaddress' value='选择退货地址'>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="girdlist">
    <tr>
        <th><t>退货地址:</t></th>
        <td id='address'>
        <{$return_product_tmall.address}>
        </td>
    </tr>
</table>
<input type='hidden' id='contact_id' name='contact_id' value='<{$return_product_tmall.contact_id}>'>
<script>
$("selectaddress").addEvent('click',function(e){
        var url='index.php?app=desktop&act=alertpages&goto='+encodeURIComponent('index.php?app=ome&ctl=admin_return_address&act=findAddress&singleselect=1');
       var callurl='index.php?app=ome&ctl=admin_return_address&act=getAddressById';
    	Ex_Loader('modedialog',function() {
			new finderDialog(url,{params:{url:callurl,name:'id'},width:1000,height:660,
				onCallback:function(rs){
					if(!rs)return;
					rs=JSON.decode(rs);
                    
					$('contact_id').set('value',rs.contact_id);
                    $('address').set('html',rs.address);
				}
			});
		});
	});

    
</script>

